# 去重并排序
nums = [1, 1, 2, 3, 1, 6, 7, 8, 9, 5, 6, 7, 5, 7, 4]
sorted_nums = list(set(nums))  # 虽然set(nums)打印纯数字看似已排序，但最好还是转成list
print(sorted_nums)
sorted_nums.reverse()
print(sorted_nums)
